import {
	request
} from '@/sheep/request';

export default {
	// 首页推荐
	recommend: () =>
		request({
			url: '/advert/api/playletRecommend',
			method: 'POST',
			custom: {
				showError: false,
				showLoading: false
			}
		}),
	// 分类
	getType: () =>
		request({
			url: '/advert/api/playletCate',
			method: 'POST',
			custom: {
				showLoading: false
			}
		}),
	// 短剧列表
	playletDetailSecond:(data) =>
		request({
			url: '/advert/api/playletDetailSecond',
			method: 'POST',
			data,
			custom: {
				showLoading: false
			}
		}),
	playletList: (data) =>
		request({
			url: '/advert/api/playletList',
			method: 'POST',
			data,
			custom: {
				showLoading: false
			}
		}),
	detail:	(data) =>
		request({
			url: '/advert/api/playletDetail',
			method: 'POST',
			data,
			custom: {
				showLoading: false
			}
		}),
	youLike:(data) =>
		request({
			url: '/advert/api/playletDetailRecommend',
			method: 'POST',
			data,
			custom: {
				showLoading: false
			}
		}),
	playletInfo:(data) =>
		request({
			url: '/advert/api/getplayletDetailInfo',
			method: 'POST',
			data,
			custom: {
				showLoading: false
			}
		}),
		getPlayLink:(data) =>
			request({
				url: '/advert/api/getPlayLink',
				method: 'POST',
				data,
				custom: {
					showLoading: false
				}
			}),
};